package com.esun.common.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author ：Ocean
 * @date ：Created in 2021/12/30 15:56
 * @description：返回分页页面
 * @modified By：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer code;
    private String msg;
    private List<T> data;

    //当前页码
    private int pageNum;
    //每页数量
    private int pageSize;
    //记录总数
    private long totalSize;
    //页码总数
    private int totalPages;

}
